package com.bungarus.group.repo;

import com.bungarus.group.model.Member;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by tang on 2018/12/2.
 */
public interface MemberRepository extends JpaRepository<Member, Long> {
    Member findByAccountNameAndTenantId(String accountName, long tenantId);
    List<Member> findById(long id);
    List<Member> findByTenantId(long tenantId);
    void deleteByIdAndTenantId(long id, long tenantId);
}
